VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "LMesa"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_Ext_KEY = "SavedWithClassBuilder6" ,"Yes"
Attribute VB_Ext_KEY = "Top_Level" ,"Yes"
'---------------------------------------------------------------------------------------
' Module    : LMesa
' DateTime  : 30/11/2011 12:17
' Author    :
' Purpose   : Clase Logica Negocio Mesa
'---------------------------------------------------------------------------------------
Option Explicit
Private dao As New DAOMEsa

'@DEPRECATED
'Public Function getLista() As Collection
'Set dao.Connection = utilConexion
'Set getLista = dao.getLista()
'End Function
Public Function fn_validaCortez() As Integer
    Set dao.Connection = utilConexion
    fn_validaCortez = dao.fn_validaCortez
End Function
Public Function getListaOcupadas() As Collection
Set dao.Connection = utilConexion
Dim bMesa As New bMesa
bMesa.bEstado.ncodigo = UtilConstantes.ESTADO_MESA_OCUPADA
Set getListaOcupadas = dao.getLista(bMesa)
End Function
Public Function getListaMesasxLiberar() As Collection
Set dao.Connection = utilConexion
Set getListaMesasxLiberar = dao.getListaMesasxLiberar()
End Function
Public Function getListaLibres() As Collection
Set dao.Connection = utilConexion
Dim bMesa As New bMesa
bMesa.bEstado.ncodigo = UtilConstantes.ESTADO_MESA_LIBRE
Set getListaLibres = dao.getLista(bMesa)
End Function
Public Function setOcupada(bean As bMesa) As Integer
Set dao.Connection = utilConexion
setOcupada = dao.setOcupada(bean)
End Function
Public Function setLibre(bean As bMesa) As Integer
Set dao.Connection = utilConexion
setLibre = dao.setLibre(bean)
End Function
Public Function setEnCaja(bean As bMesa) As Integer
Set dao.Connection = utilConexion
setEnCaja = dao.setEnCaja(bean)
End Function
Public Function setReservada(bean As bMesa) As Integer
Set dao.Connection = utilConexion
setReservada = dao.setReservada(bean)
End Function

